package com.changgou.goods.service;

import com.changgou.goods.pojo.Brand;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

public interface BrandService {
    List<Brand> findAll();
    Brand findById(Integer id);
    void add(Brand brand);
    void update(Brand brand);
    void deleteById(Integer id);
    List<Brand> search(Map<String,String> map);
    Page<Brand> searchPage(int pageNum, int pageSize);
    Page<Brand> searchPageByLike(int pageNum, int pageSize,Map<String,String> map);
}
